CallGraph
uisettings.cpp
Go to the documentation of this file.
00001 
00002 // C++ code generated with wxFormBuilder (version Sep  8 2010)
00003 // http://www.wxformbuilder.org/
00004 //
00005 // PLEASE DO "NOT" EDIT THIS FILE!
00007 
00008 #include "uisettings.h"
00009 
00011 
00012 uisettings::uisettings( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
00013 {
00014         this->SetSizeHints( wxDefaultSize, wxDefaultSize );
00015         
00016         wxBoxSizer* mainSizer;
00017         mainSizer = new wxBoxSizer( wxVERTICAL );
00018         
00019         wxFlexGridSizer* fgSizer1;
00020         fgSizer1 = new wxFlexGridSizer( 2, 3, 0, 0 );
00021         fgSizer1->AddGrowableCol( 1 );
00022         fgSizer1->AddGrowableRow( 0 );
00023         fgSizer1->AddGrowableRow( 1 );
00024         fgSizer1->SetFlexibleDirection( wxBOTH );
00025         fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00026         
00027         m_staticText_path_gprog = new wxStaticText( this, wxID_ANY, _("Select path for Gprof:"), wxDefaultPosition, wxDefaultSize, 0 );
00028         m_staticText_path_gprog->Wrap( -1 );
00029         fgSizer1->Add( m_staticText_path_gprog, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00030         
00031         m_textCtrl_path_gprof = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), wxTE_READONLY );
00032         fgSizer1->Add( m_textCtrl_path_gprof, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
00033         
00034         m_button_select_gprof = new wxButton( this, wxID_ANY, _("Select..."), wxDefaultPosition, wxDefaultSize, 0 );
00035         fgSizer1->Add( m_button_select_gprof, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00036         
00037         m_staticText_path_dot = new wxStaticText( this, wxID_ANY, _("Select path for Dot:"), wxDefaultPosition, wxDefaultSize, 0 );
00038         m_staticText_path_dot->Wrap( -1 );
00039         fgSizer1->Add( m_staticText_path_dot, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00040         
00041         m_textCtrl_path_dot = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), wxTE_READONLY );
00042         fgSizer1->Add( m_textCtrl_path_dot, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
00043         
00044         m_button_select_dot = new wxButton( this, wxID_ANY, _("Select..."), wxDefaultPosition, wxDefaultSize, 0 );
00045         fgSizer1->Add( m_button_select_dot, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00046         
00047         mainSizer->Add( fgSizer1, 0, wxBOTTOM|wxRIGHT, 5 );
00048         
00049         wxStaticBoxSizer* sbSizer;
00050         sbSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Settings for CALL graph") ), wxVERTICAL );
00051         
00052         m_staticText5 = new wxStaticText( this, wxID_ANY, _("Resolutions:"), wxDefaultPosition, wxDefaultSize, 0 );
00053         m_staticText5->Wrap( -1 );
00054         sbSizer->Add( m_staticText5, 0, wxALL, 5 );
00055         
00056         wxFlexGridSizer* fgSizer2;
00057         fgSizer2 = new wxFlexGridSizer( 2, 2, 0, 0 );
00058         fgSizer2->AddGrowableCol( 1 );
00059         fgSizer2->AddGrowableRow( 0 );
00060         fgSizer2->AddGrowableRow( 1 );
00061         fgSizer2->SetFlexibleDirection( wxBOTH );
00062         fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00063         
00064         m_staticText6 = new wxStaticText( this, wxID_ANY, _("Node treshold (0 - 100) [%]"), wxDefaultPosition, wxDefaultSize, 0 );
00065         m_staticText6->Wrap( -1 );
00066         fgSizer2->Add( m_staticText6, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00067         
00068         m_spinCtrl_treshold_node = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 0 );
00069         fgSizer2->Add( m_spinCtrl_treshold_node, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00070         
00071         m_staticText7 = new wxStaticText( this, wxID_ANY, _("Edge treshold (0 - 100) [%]"), wxDefaultPosition, wxDefaultSize, 0 );
00072         m_staticText7->Wrap( -1 );
00073         fgSizer2->Add( m_staticText7, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00074         
00075         m_spinCtrl_treshold_edge = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 0 );
00076         fgSizer2->Add( m_spinCtrl_treshold_edge, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00077         
00078         sbSizer->Add( fgSizer2, 1, wxEXPAND, 5 );
00079         
00080         wxBoxSizer* bSizer1;
00081         bSizer1 = new wxBoxSizer( wxVERTICAL );
00082         
00083         m_staticline6 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
00084         bSizer1->Add( m_staticline6, 0, wxEXPAND | wxALL, 5 );
00085         
00086         m_staticText8 = new wxStaticText( this, wxID_ANY, _("Options:"), wxDefaultPosition, wxDefaultSize, 0 );
00087         m_staticText8->Wrap( -1 );
00088         bSizer1->Add( m_staticText8, 0, wxALL, 5 );
00089         
00090         sbSizer->Add( bSizer1, 0, wxEXPAND, 5 );
00091         
00092         wxFlexGridSizer* fgSizer3;
00093         fgSizer3 = new wxFlexGridSizer( 2, 3, 0, 0 );
00094         fgSizer3->AddGrowableCol( 2 );
00095         fgSizer3->AddGrowableRow( 0 );
00096         fgSizer3->AddGrowableRow( 1 );
00097         fgSizer3->SetFlexibleDirection( wxBOTH );
00098         fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00099         
00100         m_checkBox_Names = new wxCheckBox( this, wxID_ANY, _("Short names"), wxDefaultPosition, wxDefaultSize, 0 );
00101         fgSizer3->Add( m_checkBox_Names, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00102         
00103         m_staticText9 = new wxStaticText( this, wxID_ANY, _("Number of node load level colors (max 10)"), wxDefaultPosition, wxDefaultSize, 0 );
00104         m_staticText9->Wrap( -1 );
00105         fgSizer3->Add( m_staticText9, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00106         
00107         m_spinCtrl_colors_node = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10, 1 );
00108         fgSizer3->Add( m_spinCtrl_colors_node, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00109         
00110         m_checkBox_Parametrs = new wxCheckBox( this, wxID_ANY, _("Strip parameters   "), wxDefaultPosition, wxDefaultSize, 0 );
00111         fgSizer3->Add( m_checkBox_Parametrs, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00112         
00113         m_staticText10 = new wxStaticText( this, wxID_ANY, _("Number of edge load level colors (max 10)"), wxDefaultPosition, wxDefaultSize, 0 );
00114         m_staticText10->Wrap( -1 );
00115         fgSizer3->Add( m_staticText10, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00116         
00117         m_spinCtrl_colors_edge = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10, 1 );
00118         fgSizer3->Add( m_spinCtrl_colors_edge, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
00119         
00120         sbSizer->Add( fgSizer3, 1, wxEXPAND|wxBOTTOM, 5 );
00121         
00122         mainSizer->Add( sbSizer, 1, wxEXPAND, 5 );
00123         
00124         wxBoxSizer* bSizer2;
00125         bSizer2 = new wxBoxSizer( wxHORIZONTAL );
00126         
00127         m_buttonOk = new wxButton( this, wxID_OK, _("&Ok"), wxDefaultPosition, wxDefaultSize, 0 );
00128         m_buttonOk->SetDefault(); 
00129         bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
00130         
00131         m_buttonCancel = new wxButton( this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
00132         bSizer2->Add( m_buttonCancel, 0, wxALL, 5 );
00133         
00134         mainSizer->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM, 5 );
00135         
00136         this->SetSizer( mainSizer );
00137         this->Layout();
00138         mainSizer->Fit( this );
00139         
00140         this->Centre( wxBOTH );
00141         
00142         // Connect Events
00143         m_button_select_gprof->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_gprof ), NULL, this );
00144         m_button_select_dot->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_dot ), NULL, this );
00145         m_checkBox_Names->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckName ), NULL, this );
00146         m_checkBox_Parametrs->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckParam ), NULL, this );
00147         m_buttonOk->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_ok ), NULL, this );
00148         m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_cancel ), NULL, this );
00149 }
00150 
00151 uisettings::~uisettings()
00152 {
00153         // Disconnect Events
00154         m_button_select_gprof->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_gprof ), NULL, this );
00155         m_button_select_dot->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_dot ), NULL, this );
00156         m_checkBox_Names->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckName ), NULL, this );
00157         m_checkBox_Parametrs->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckParam ), NULL, this );
00158         m_buttonOk->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_ok ), NULL, this );
00159         m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_cancel ), NULL, this );
00160         
00161 }
 All Classes Files Functions Variables